package com.sas.web.panel;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;

import com.sas.web.articles.ArticlesPage;
import com.sas.web.clients.ClientsPage;
import com.sas.web.search.SearchPage;
import com.sas.web.vendors.VendorsPage;

@SuppressWarnings("serial")
public class MenuPanel extends Panel {

	public MenuPanel(String id) {
		super(id);
		add(new Link<Void>("articles") {

			@Override
			public void onClick() {
				setResponsePage(ArticlesPage.class);
			}
		});
		
		add(new Link<Void>("vendors") {

			@Override
			public void onClick() {
				setResponsePage(VendorsPage.class);
			}
		});
		
		add(new Link<Void>("clients") {

			@Override
			public void onClick() {
				setResponsePage(ClientsPage.class);
				
			}
		});
		
		add(new Link<Void>("summary") {

			@Override
			public void onClick() {
				//setResponsePage(ArticlesPage.class);
				
			}
		});
		
		add(new Link<Void>("flows") {

			@Override
			public void onClick() {
				setResponsePage(SearchPage.class);
			}
		});
		
		add(new Link<Void>("search") {

			@Override
			public void onClick() {
				setResponsePage(SearchPage.class);
				
			}
		});
	}

}
